/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: nu uc
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class T_bed_dutDetachedCriteria extends AbstractORMDetachedCriteria {
    public final IntegerExpression id;
    public final StringExpression testBedIp;
    public final StringExpression name;
    public final BooleanExpression isSerialActive;

    public T_bed_dutDetachedCriteria() {
	super(org.testis.orm.classes.T_bed_dut.class,
		org.testis.orm.classes.T_bed_dutCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	testBedIp = new StringExpression("testBedIp",
		this.getDetachedCriteria());
	name = new StringExpression("name", this.getDetachedCriteria());
	isSerialActive = new BooleanExpression("isSerialActive",
		this.getDetachedCriteria());
    }

    public T_bed_dutDetachedCriteria(DetachedCriteria aDetachedCriteria) {
	super(aDetachedCriteria,
		org.testis.orm.classes.T_bed_dutCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	testBedIp = new StringExpression("testBedIp",
		this.getDetachedCriteria());
	name = new StringExpression("name", this.getDetachedCriteria());
	isSerialActive = new BooleanExpression("isSerialActive",
		this.getDetachedCriteria());
    }

    public T_bed_serialconnectionDetachedCriteria createSerialCriteria() {
	return new T_bed_serialconnectionDetachedCriteria(
		createCriteria("Serial"));
    }

    public T_bed_testpcDetachedCriteria createPcCriteria() {
	return new T_bed_testpcDetachedCriteria(createCriteria("Pc"));
    }

    public T_bed_dslamDetachedCriteria createDslamCriteria() {
	return new T_bed_dslamDetachedCriteria(createCriteria("Dslam"));
    }

    public T_bed_devicedefinitionsDetachedCriteria createDeviceDefinitionCriteria() {
	return new T_bed_devicedefinitionsDetachedCriteria(
		createCriteria("DeviceDefinition"));
    }

    public T_bed_firmwareDetachedCriteria createActiveFirmwareCriteria() {
	return new T_bed_firmwareDetachedCriteria(
		createCriteria("ActiveFirmware"));
    }

    public T_bed_dut uniqueT_bed_dut(PersistentSession session) {
	return (T_bed_dut) super.createExecutableCriteria(session)
		.uniqueResult();
    }

    public T_bed_dut[] listT_bed_dut(PersistentSession session) {
	List list = super.createExecutableCriteria(session).list();
	return (T_bed_dut[]) list.toArray(new T_bed_dut[list.size()]);
    }
}
